class SessionController < ApplicationController

    before_filter :get_object

    # task history
    def list
        @sessions = @task.sessions;
    end

    # start session
    def start
        @task.start_session;
    end

    # stop session
    def stop
        @task.stop_current_session;
    end

    protected

    # get the task object
    def get_object
        @task = get_task(params[:id]);
    end
end
